package com.distortiongames.level27.generation 
{
	/**
	 * ...
	 * @author Jefferson Wagner
	 */
	public class Point 
	{
		public var x:int, y:int;
		
		public function Point(x:int = 0, y:int = 0) 
		{
			this.x = x;
			this.y = y;
		}
		
		public function copy() : Point {
			return new Point(x, y);
		}
		
		public function add(point:Point): void {
			this.x += point.x;
			this.y += point.y;
		}
		
		public function added(point:Point) : Point {
			var point2:Point = this.copy();
			point2.add(point);
			return point2;
		}
		
		public function toString() : String {
			return "{" + x + ", " + y + "}";
		}
		
		public function equals(point:Point) : Boolean {
			return this.x == point.x && this.y == point.y;
		}
	}

}